package com.qf.common.core.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("activity_records")
@ApiModel(description = "运动记录")
public class ActivityRecords {

    @TableId(type = IdType.AUTO)
    private Integer activityId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id",example = "1",hidden = true)
    private Integer userId;

    /**
     * 活动类型（跑步、游泳、骑行等）
     */
    @ApiModelProperty(value = "活动类型1、瑜伽 2、快走3、跑步4、骑行",example = "1")
    private String activityType;

    /**
     * 持续时间，单位：分钟
     */
    @ApiModelProperty(value = "运动时长,单位分钟",example = "30")
    private Integer duration;
    /**
     * 运动距离，单位：米
     */
    @ApiModelProperty(value = "运动距离，单位米",example = "30")
    private double distance;
    /**
     * 运动步数
     */
    @ApiModelProperty(value = "运动步数")
    private Integer steps;

    /**
     * 消耗的卡路里
     */
    @ApiModelProperty(value = "消耗卡路里,单位卡",example = "30")
    private Integer caloriesBurned;

    /**
     * 活动开始时间
     */
    @ApiModelProperty(value = "运动开始时间",example = "2021-07-01 12:00:00")
    private Date startTime;

    /**
     * 活动结束时间
     */
    @ApiModelProperty(value = "运动结束时间",example = "2021-07-01 13:00:00")
    private Date endTime;


}
